package cn.exrick.xboot.modules.commonlyUsed.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.istack.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author XBW
 */
@Data
@Entity
@Table(name = "t_user_commonly")
@TableName("t_user_commonly")
@ApiModel(value = "公司功能关联表")
public class UserCommonly extends XbootBaseEntity {
    private static final long serialVersionUID = 1L;

    @Id
    @TableId
    @ApiModelProperty(value = "唯一标识")
    @NotNull
    private String id;

    @ApiModelProperty(value = "常用功能code")
    private String functionCode;

    @ApiModelProperty(value = "组织机构id")
    private String orgId;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @TableField(exist = false)
    @ApiModelProperty(value = "常用功能图表")
    private String functionIcon;

    @TableField(exist = false)
    @ApiModelProperty(value = "常用功能名称")
    private String functionName;
}
